<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>ChunkHelper (PNGJ 2.1.1-SNAPSHOT API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="ChunkHelper (PNGJ 2.1.1-SNAPSHOT API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ChunkHelper.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkFactory.html" title="class in ar.com.hjg.pngj.chunks"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkLoadBehaviour.html" title="enum in ar.com.hjg.pngj.chunks"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?ar/com/hjg/pngj/chunks/ChunkHelper.html" target="_top">Frames</a></li>
<li><a href="ChunkHelper.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">ar.com.hjg.pngj.chunks</div>
<h2 title="Class ChunkHelper" class="title">Class ChunkHelper</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>ar.com.hjg.pngj.chunks.ChunkHelper</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">ChunkHelper</span>
extends <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Helper methods and constants related to Chunk processing.
 <p>
 This should only be of interest to developers doing special chunk processing or extending the ChunkFactory</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#b_IDAT">b_IDAT</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#b_IEND">b_IEND</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#b_IHDR">b_IHDR</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#b_PLTE">b_PLTE</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#bKGD">bKGD</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#cHRM">cHRM</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#gAMA">gAMA</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#hIST">hIST</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#iCCP">iCCP</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#IDAT">IDAT</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#IEND">IEND</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#IHDR">IHDR</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#iTXt">iTXt</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#pHYs">pHYs</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#PLTE">PLTE</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#sBIT">sBIT</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#sPLT">sPLT</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#sRGB">sRGB</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#tEXt">tEXt</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#tIME">tIME</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#tRNS">tRNS</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#zTXt">zTXt</a></strong></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#compressBytes(byte[], boolean)">compressBytes</a></strong>(byte[]&nbsp;ori,
             boolean&nbsp;compress)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#compressBytes(byte[], int, int, boolean)">compressBytes</a></strong>(byte[]&nbsp;ori,
             int&nbsp;offset,
             int&nbsp;len,
             boolean&nbsp;compress)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#equivalent(ar.com.hjg.pngj.chunks.PngChunk, ar.com.hjg.pngj.chunks.PngChunk)">equivalent</a></strong>(<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&nbsp;c1,
          <a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&nbsp;c2)</code>
<div class="block">Adhoc criteria: two ancillary chunks are "equivalent" ("practically same type") if they have same id and (perhaps,
 if multiple are allowed) if the match also in some "internal key" (eg: key for string values, palette for sPLT,
 etc)
 
 When we use this method, we implicitly assume that we don't allow/expect two "equivalent" chunks in a single PNG
 
 Notice that the use of this is optional, and that the PNG standard actually allows text chunks that have same key</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#filterList(java.util.List, ar.com.hjg.pngj.chunks.ChunkPredicate)">filterList</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&gt;&nbsp;target,
          <a href="../../../../../ar/com/hjg/pngj/chunks/ChunkPredicate.html" title="interface in ar.com.hjg.pngj.chunks">ChunkPredicate</a>&nbsp;predicateKeep)</code>
<div class="block">Returns only the chunks that "match" the predicate
 
 See also trimList()</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#isCritical(java.lang.String)">isCritical</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id)</code>
<div class="block">critical chunk : first letter is uppercase</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#isPublic(java.lang.String)">isPublic</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id)</code>
<div class="block">public chunk: second letter is uppercase</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#isSafeToCopy(java.lang.String)">isSafeToCopy</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id)</code>
<div class="block">Safe to copy chunk: fourth letter is lower case</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#isText(ar.com.hjg.pngj.chunks.PngChunk)">isText</a></strong>(<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&nbsp;c)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#isUnknown(ar.com.hjg.pngj.chunks.PngChunk)">isUnknown</a></strong>(<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&nbsp;c)</code>
<div class="block">"Unknown" just means that our chunk factory (even when it has been augmented by client code) did not recognize its
 id</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#posNullByte(byte[])">posNullByte</a></strong>(byte[]&nbsp;b)</code>
<div class="block">Finds position of null byte in array</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#shouldLoad(java.lang.String, ar.com.hjg.pngj.chunks.ChunkLoadBehaviour)">shouldLoad</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id,
          <a href="../../../../../ar/com/hjg/pngj/chunks/ChunkLoadBehaviour.html" title="enum in ar.com.hjg.pngj.chunks">ChunkLoadBehaviour</a>&nbsp;behav)</code>
<div class="block">Decides if a chunk should be loaded, according to a ChunkLoadBehaviour</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#toBytes(java.lang.String)">toBytes</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;x)</code>
<div class="block">Converts to bytes using Latin1 (ISO-8859-1)</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#toBytesUTF8(java.lang.String)">toBytesUTF8</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;x)</code>
<div class="block">Converts to bytes using UTF-8</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#toString(byte[])">toString</a></strong>(byte[]&nbsp;x)</code>
<div class="block">Converts to String using Latin1 (ISO-8859-1)</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#toString(byte[], int, int)">toString</a></strong>(byte[]&nbsp;x,
        int&nbsp;offset,
        int&nbsp;len)</code>
<div class="block">Converts to String using Latin1 (ISO-8859-1)</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#toStringUTF8(byte[])">toStringUTF8</a></strong>(byte[]&nbsp;x)</code>
<div class="block">Converts to string using UTF-8</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#toStringUTF8(byte[], int, int)">toStringUTF8</a></strong>(byte[]&nbsp;x,
            int&nbsp;offset,
            int&nbsp;len)</code>
<div class="block">Converts to string using UTF-8</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkHelper.html#trimList(java.util.List, ar.com.hjg.pngj.chunks.ChunkPredicate)">trimList</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&gt;&nbsp;target,
        <a href="../../../../../ar/com/hjg/pngj/chunks/ChunkPredicate.html" title="interface in ar.com.hjg.pngj.chunks">ChunkPredicate</a>&nbsp;predicateRemove)</code>
<div class="block">Remove (in place) the chunks that "match" the predicate
 
 See also filterList</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="IHDR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IHDR</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> IHDR</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.IHDR">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PLTE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLTE</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> PLTE</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.PLTE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="IDAT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IDAT</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> IDAT</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.IDAT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="IEND">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IEND</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> IEND</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.IEND">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="cHRM">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cHRM</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cHRM</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.cHRM">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="gAMA">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gAMA</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> gAMA</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.gAMA">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="iCCP">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iCCP</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> iCCP</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.iCCP">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="sBIT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sBIT</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> sBIT</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.sBIT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="sRGB">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sRGB</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> sRGB</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.sRGB">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="bKGD">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bKGD</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> bKGD</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.bKGD">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="hIST">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hIST</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> hIST</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.hIST">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="tRNS">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tRNS</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> tRNS</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.tRNS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="pHYs">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pHYs</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pHYs</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.pHYs">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="sPLT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sPLT</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> sPLT</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.sPLT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="tIME">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tIME</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> tIME</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.tIME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="iTXt">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iTXt</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> iTXt</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.iTXt">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="tEXt">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tEXt</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> tEXt</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.tEXt">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="zTXt">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zTXt</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> zTXt</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#ar.com.hjg.pngj.chunks.ChunkHelper.zTXt">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="b_IHDR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>b_IHDR</h4>
<pre>public static final&nbsp;byte[] b_IHDR</pre>
</li>
</ul>
<a name="b_PLTE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>b_PLTE</h4>
<pre>public static final&nbsp;byte[] b_PLTE</pre>
</li>
</ul>
<a name="b_IDAT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>b_IDAT</h4>
<pre>public static final&nbsp;byte[] b_IDAT</pre>
</li>
</ul>
<a name="b_IEND">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>b_IEND</h4>
<pre>public static final&nbsp;byte[] b_IEND</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="toBytes(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toBytes</h4>
<pre>public static&nbsp;byte[]&nbsp;toBytes(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;x)</pre>
<div class="block">Converts to bytes using Latin1 (ISO-8859-1)</div>
</li>
</ul>
<a name="toString(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString(byte[]&nbsp;x)</pre>
<div class="block">Converts to String using Latin1 (ISO-8859-1)</div>
</li>
</ul>
<a name="toString(byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString(byte[]&nbsp;x,
              int&nbsp;offset,
              int&nbsp;len)</pre>
<div class="block">Converts to String using Latin1 (ISO-8859-1)</div>
</li>
</ul>
<a name="toBytesUTF8(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toBytesUTF8</h4>
<pre>public static&nbsp;byte[]&nbsp;toBytesUTF8(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;x)</pre>
<div class="block">Converts to bytes using UTF-8</div>
</li>
</ul>
<a name="toStringUTF8(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toStringUTF8</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toStringUTF8(byte[]&nbsp;x)</pre>
<div class="block">Converts to string using UTF-8</div>
</li>
</ul>
<a name="toStringUTF8(byte[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toStringUTF8</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toStringUTF8(byte[]&nbsp;x,
                  int&nbsp;offset,
                  int&nbsp;len)</pre>
<div class="block">Converts to string using UTF-8</div>
</li>
</ul>
<a name="isCritical(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCritical</h4>
<pre>public static&nbsp;boolean&nbsp;isCritical(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id)</pre>
<div class="block">critical chunk : first letter is uppercase</div>
</li>
</ul>
<a name="isPublic(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPublic</h4>
<pre>public static&nbsp;boolean&nbsp;isPublic(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id)</pre>
<div class="block">public chunk: second letter is uppercase</div>
</li>
</ul>
<a name="isSafeToCopy(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSafeToCopy</h4>
<pre>public static&nbsp;boolean&nbsp;isSafeToCopy(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id)</pre>
<div class="block">Safe to copy chunk: fourth letter is lower case</div>
</li>
</ul>
<a name="isUnknown(ar.com.hjg.pngj.chunks.PngChunk)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUnknown</h4>
<pre>public static&nbsp;boolean&nbsp;isUnknown(<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&nbsp;c)</pre>
<div class="block">"Unknown" just means that our chunk factory (even when it has been augmented by client code) did not recognize its
 id</div>
</li>
</ul>
<a name="posNullByte(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>posNullByte</h4>
<pre>public static&nbsp;int&nbsp;posNullByte(byte[]&nbsp;b)</pre>
<div class="block">Finds position of null byte in array</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>b</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>-1 if not found</dd></dl>
</li>
</ul>
<a name="shouldLoad(java.lang.String, ar.com.hjg.pngj.chunks.ChunkLoadBehaviour)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldLoad</h4>
<pre>public static&nbsp;boolean&nbsp;shouldLoad(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id,
                 <a href="../../../../../ar/com/hjg/pngj/chunks/ChunkLoadBehaviour.html" title="enum in ar.com.hjg.pngj.chunks">ChunkLoadBehaviour</a>&nbsp;behav)</pre>
<div class="block">Decides if a chunk should be loaded, according to a ChunkLoadBehaviour</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - </dd><dd><code>behav</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>true/false</dd></dl>
</li>
</ul>
<a name="compressBytes(byte[], boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compressBytes</h4>
<pre>public static final&nbsp;byte[]&nbsp;compressBytes(byte[]&nbsp;ori,
                   boolean&nbsp;compress)</pre>
</li>
</ul>
<a name="compressBytes(byte[], int, int, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compressBytes</h4>
<pre>public static&nbsp;byte[]&nbsp;compressBytes(byte[]&nbsp;ori,
                   int&nbsp;offset,
                   int&nbsp;len,
                   boolean&nbsp;compress)</pre>
</li>
</ul>
<a name="filterList(java.util.List, ar.com.hjg.pngj.chunks.ChunkPredicate)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>filterList</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&gt;&nbsp;filterList(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&gt;&nbsp;target,
                        <a href="../../../../../ar/com/hjg/pngj/chunks/ChunkPredicate.html" title="interface in ar.com.hjg.pngj.chunks">ChunkPredicate</a>&nbsp;predicateKeep)</pre>
<div class="block">Returns only the chunks that "match" the predicate
 
 See also trimList()</div>
</li>
</ul>
<a name="trimList(java.util.List, ar.com.hjg.pngj.chunks.ChunkPredicate)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trimList</h4>
<pre>public static&nbsp;int&nbsp;trimList(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&gt;&nbsp;target,
           <a href="../../../../../ar/com/hjg/pngj/chunks/ChunkPredicate.html" title="interface in ar.com.hjg.pngj.chunks">ChunkPredicate</a>&nbsp;predicateRemove)</pre>
<div class="block">Remove (in place) the chunks that "match" the predicate
 
 See also filterList</div>
</li>
</ul>
<a name="equivalent(ar.com.hjg.pngj.chunks.PngChunk, ar.com.hjg.pngj.chunks.PngChunk)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equivalent</h4>
<pre>public static final&nbsp;boolean&nbsp;equivalent(<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&nbsp;c1,
                 <a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&nbsp;c2)</pre>
<div class="block">Adhoc criteria: two ancillary chunks are "equivalent" ("practically same type") if they have same id and (perhaps,
 if multiple are allowed) if the match also in some "internal key" (eg: key for string values, palette for sPLT,
 etc)
 
 When we use this method, we implicitly assume that we don't allow/expect two "equivalent" chunks in a single PNG
 
 Notice that the use of this is optional, and that the PNG standard actually allows text chunks that have same key</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if "equivalent"</dd></dl>
</li>
</ul>
<a name="isText(ar.com.hjg.pngj.chunks.PngChunk)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isText</h4>
<pre>public static&nbsp;boolean&nbsp;isText(<a href="../../../../../ar/com/hjg/pngj/chunks/PngChunk.html" title="class in ar.com.hjg.pngj.chunks">PngChunk</a>&nbsp;c)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ChunkHelper.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkFactory.html" title="class in ar.com.hjg.pngj.chunks"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../ar/com/hjg/pngj/chunks/ChunkLoadBehaviour.html" title="enum in ar.com.hjg.pngj.chunks"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?ar/com/hjg/pngj/chunks/ChunkHelper.html" target="_top">Frames</a></li>
<li><a href="ChunkHelper.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2014. All rights reserved.</small></p>
</body>
</html>
